package com.lujianfei.powersearch.ui.createOrUpdate.widget.imageviewedit.model

import android.net.Uri

data class ImageViewEditItem(
    val imageUri: Uri? = null,
    val imageUrl: String? = null,
    val type:Int
) {
    companion object {
        const val TYPE_NORMAL = 0
        const val TYPE_ADD = 1
    }

    fun hasUri() = imageUri != null
    fun hasUrl() = !imageUrl.isNullOrBlank()
}
